package com.witdata.security.exception;

import com.witdata.common.domain.Status;
import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.AuthenticationException;

@Getter
@Setter
public class MyAccessDeniedException extends AuthenticationException {
    private Status status;
    public MyAccessDeniedException(String msg, Throwable cause) {
        super(msg, cause);
    }

    public MyAccessDeniedException(String msg) {
        super(msg);
    }

    public MyAccessDeniedException(Status status) {
        super(status.getMsg());
        this.status = status;
    }
}
